<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Login</title>
    <link href="assets/css/bootstrap.min.css"  rel="stylesheet">
    <link href="assets/css/login.css" rel="stylesheet">
    <script src="assets/js/jquery-3.2.1.js"></script>
</head>
<body class="text-center">
		<% boolean loginwrong = false; %>
		
		
	<form class="form-signin" action = "http://localhost:8083/Car_Pass_Count_System/LoginServlet" method = "post">
			 <img class="mb-4" src="assets/images/logo.jpg" alt="" width="72" height="72" style="CURSOR: hand" onclick='window.location.href="/login"'>
			 <h1 class="h3 mb-3 font-weight-normal"> 车辆进出管理系统--登录</h1>
			 <input type="hidden" name="type" value="login">
			 <input name = "username" id="username" type = "text" value="${savename }" class="form-control" required="" placeholder="用户名"/> <br/>
			 <input name = "passwd" id="passwd" type = "password" value="${savepasswd }" class="form-control" required="" placeholder="密码"/><br/>
			 <button class="btn btn-lg btn-primary " style="width: 100px " type="submit">登 录</button>
	</form>
		<c:if test = "${ loginwrong }"> 密码错误或用户名不存在 </c:if>	
</body>
</html>